package com.nf.Tax;

public class TaxUtillmpl2 implements ITaxUtil{
//    private static final float Rate=0.3f;
//    private static final float Start=5000.0f;

    private float rate;
    private float start;

    public void setRate(float rate) {
        this.rate = rate;
    }

    public void setStart(float start) {
        this.start = start;
    }

    @Override
    public float calaTax(float a) {
        return a>start?(a-start)*rate:0;
    }
}
